From dc82949fbe4cfd5948f23cbea98c751a4346d8f4 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 23 Jul 2015 22:15:32 -0400 Subject: [PATCH] file chooser dialog: Better spacing When the dialog is as narrow as possible, we still want some space between the entry and the search button, so use margins around the entry and label instead of box spacing. --- gtk/gtkfilechooserdialog.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk/gtkfilechooserdialog.c b/gtk/gtkfilechooserdialog.c index dc41d3232f..66ed07123c 100644 --- a/gtk/gtkfilechooserdialog.c +++ b/gtk/gtkfilechooserdialog.c @@ -567,9 +567,11 @@ setup_save_entry (GtkFileChooserDialog *dialog) GtkWidget *label; GtkWidget *entry; - box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12); + box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); label = gtk_label_new_with_mnemonic (_("_Name")); entry = _gtk_file_chooser_entry_new (FALSE, FALSE); + g_object_set (label, "margin-start", 6, "margin-end", 6, NULL); + g_object_set (entry, "margin-start", 6, "margin-end", 6, NULL); gtk_label_set_mnemonic_widget (GTK_LABEL (label), entry); gtk_container_add (GTK_CONTAINER (box), label); gtk_container_add (GTK_CONTAINER (box), entry); -- 2.30.2